//
// Created by sri01 on 2025/11/4.
//

#include "bsp_spi.h"

HAL_StatusTypeDef BSP_SPI_Transmit(SPI_HandleTypeDef* hspi, uint8_t* pData, uint16_t Size, uint32_t Timeout)
{
    return HAL_SPI_Transmit(hspi, pData, Size, Timeout);
}

HAL_StatusTypeDef BSP_SPI_Receive(SPI_HandleTypeDef* hspi, uint8_t* pData, uint16_t Size, uint32_t Timeout)
{
    return HAL_SPI_Receive(hspi, pData, Size, Timeout);
}

HAL_StatusTypeDef BSP_SPI_TransmitReceive(SPI_HandleTypeDef* hspi, uint8_t* pTxData, uint8_t* pRxData, uint16_t Size,
                                          uint32_t Timeout)
{
    return HAL_SPI_TransmitReceive(hspi, pTxData, pRxData, Size, Timeout);
}
